package com.gitee.wsl.platform.concurrent.locks

import kotlinx.atomicfu.locks.reentrantLock
import kotlinx.atomicfu.locks.withLock

actual open class Lock actual constructor() {
    val lock = reentrantLock()
    actual inline fun <T> synchronized(block: () -> T): T = lock.withLock(block)
}